package unseen.labs.games.gamecontroller.ui.component;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.SurfaceView;
import android.view.View;

public class Button  extends SurfaceView{

private Context mContext;
	


	
	public Button(Context context) {
		super(context);
		mContext = context;
		initView();
	}
	
	public Button(Context context, AttributeSet attrs) {
		super(context, attrs);
		mContext = context;
		initView();
	}

	public Button(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		mContext = context;
		initView();
	}	

	private void initView() {

	}
	
	@Override
	public boolean onTouchEvent(final MotionEvent event) {		
		
        if (event.getAction() == MotionEvent.ACTION_DOWN) {
        	System.out.println("BUTTON CLICK LONG");            
        }
        return true;
    }
	
	
}
